/* global axios */

import ApiClient from './ApiClient'

class CannedResponse extends ApiClient {
  constructor () {
    super('cannedResponses', { accountScoped: true })
  }

  get ({ searchKey }) {
    const url = searchKey ? `${this.url}?search=${searchKey}` : this.url
    return axios.get(url)
  }
}

export default new CannedResponse()
